package com.chalk.service;


import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.chalk.exception.ColumnNotEmptyException;
import com.chalk.model.Venue;
import com.chalk.vo.VenueVo;
import io.swagger.models.auth.In;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author glq
 * @since 2020-12-10
 */

public interface VenueService extends IService<Venue> {

    /**
     * 获取场馆分页
     * @param map
     * @return
     */
    public Page<Venue> getVenueForPage(Map<String, Object> map)throws ColumnNotEmptyException;

    /**
     * 新增场馆
     * @param venueVo
     * @return
     */
    public Boolean saveVenue(VenueVo venueVo);


    /**
     * 更新场馆
     * @param venueVo
     * @return
     */
    public Boolean updateVenue(VenueVo venueVo);

    /**
     * 场馆删除
     * @param venueIds
     * @return
     */

    public Boolean deleteVenue(Integer[] venueIds);

    /**
     *  设为热推  /取消热推
     * @param venueId
     * @return
     */
    public Boolean  setIsRecommend(Integer venueId);

}
